export default {
  createQrCodeType: {//创建二维码类型
    url: '/core/qrCodeType/create',
    require: ['token', 'clientid']//name、code(选)、data(选)
  },
  updateQrCodeType: {//更新二维码类型
    url: '/core/qrCodeType/update',
    require: ['token', 'clientid']//id、name(选)、code(选)、data(选)、enabled(选)
  },
  getQrCodeType: {//获取二维码类型
    url: '/core/qrCodeType/get',
    require: ['token', 'clientid']//id/code
  },
  getQrCodeTypeList: {//获取二维码类型列表
    url: '/core/qrCodeType/list',
    require: ['token', 'clientid']
  },
  deleteQrCodeType: {//删除二维码类型
    url: '/core/qrCodeType/delete',
    require: ['token', 'clientid']//id/code
  },


  createQrCode: {//创建二维码
    url: '/core/qrCode/create',
    require: ['token', 'clientid']//qrCodeTypeCode、title、api、
    // params(选，格式：{"params":[{"param":"periodId","value":5,"required":true},{"param":"customerId","value":"","required":false}]})、data(选)、expiredMinute(选，默认2分钟)
  },
  updateQrCode: {//更新二维码
    url: '/core/qrCode/update',
    require: ['token', 'clientid']//id、title(选)、api(选)、params(选)、data(选)、expiredMinute(选)
  },
  getQrCode: {//获取二维码
    url: '/core/qrCode/get',
    require: ['token', 'clientid']//id/key
  },
  getQrCodeList: {//获取二维码列表
    url: '/core/qrCode/list',
    require: ['token', 'clientid']//page、size(选)、expired(选)、key(选)、qrCodeTypeCode(选)
  },
  delQrCode: {//删除二维码
    url: '/core/qrCode/delete',
    require: ['token', 'clientid']//id
  },
  createQrCodeImg: {//生成二维码
    url: '/core/qrCode/createQrCode',
    require: ['token', 'clientid']//id
  },
  getQrCodeImg: {//获得二维码图片
    url:'/core/qrCode/getImage',
    require: ['token', 'clientid']//id、encrypt(选，Boolean值)
  },
}
